# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=kongress
pkgver=23.08.4
pkgrel=0
pkgdesc="Companion application for conferences"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://invent.kde.org/utilities/kongress"
license="GPL-3.0-or-later AND LGPL-3.0-or-later AND BSD-2-Clause AND CC-BY-SA-4.0 AND CC0-1.0"
depends="kirigami2"
makedepends="
	extra-cmake-modules
	kcalendarcore5-dev
	kconfig5-dev
	kcoreaddons5-dev
	kdbusaddons5-dev
	ki18n5-dev
	kirigami2-dev
	knotifications5-dev
	kservice5-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtquickcontrols2-dev
	qt5-qtsvg-dev
	qt5-qttools-dev
	samurai
	"
_repo_url="https://invent.kde.org/utilities/kongress.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/kongress-$pkgver.tar.xz"
subpackages="$pkgname-lang"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b0a95255aee2a2af9dcf87839f2f9459cd25e7d85a854166d98ea36c725bc5f81acb941f2e5e5da908e51e2384b4222787cb13a9824b3df08c0ce2b3742e5570  kongress-23.08.4.tar.xz
"
